<template>
	<view class="content">
		<view class="main">
			<view>运单号：{{detail.od_num}}</view>
			<view>发货地：{{detail.startCity}}</view>
			<view>目的地：{{detail.toCity}}</view>
			<hr style="margin: 24rpx 0 24rpx 0;" />
			<view>货物名称：{{detail.goods[0].name}}</view>
			<view>货物数量：{{detail.goods[0].num}}</view>
			<view>包装：{{detail.goods[0].pkg}}</view>

			<view class="btn_ok" @click="onOk">确定</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: {}, // 运单详情
			}
		},

		onShow() {
			this.detail = JSON.parse(uni.getStorageSync('order_detail'))
		},

		methods: {

			onOk() {
				uni.navigateBack()
			}

		}
	}
</script>

<style scoped>
	.content {
		display: flex;
		flex-direction: column;
		position: relative;
		min-height: 100vh;
		background-color: #6974DD;
		/* background-color: #f0f0f0; */
	}

	.main {
		margin: 24rpx;
		padding: 24rpx;
		background: white;
		border-radius: 24rpx;
	}

	.btn_ok {
		height: 88rpx;
		line-height: 88rpx;
		color: white;
		text-align: center;
		font-size: 30rpx;
		margin: 60rpx 0 0 0;
		border-radius: 888rpx;
		background: #6974DD;
	}
</style>